import Swipe from './directive';
import Vue from 'vue';

const install = (Vue) => {
	Vue.directive('swipe', Swipe);
};

if (!Vue.prototype.$isServer && window.Vue) {
	window.swipe = Swipe;
	Vue.use(install); // eslint-disable-line
}

Swipe.install = install;
export default Swipe;
